package com.ternnetwork.wechat.service.impl.user;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;


import com.ternnetwork.wechat.dao.user.WechatQyUserSyncTaskDao;
import com.ternnetwork.wechat.enums.WechatQyUserSyncTaskStatus;
import com.ternnetwork.wechat.enums.WechatQyUserSyncTaskType;
import com.ternnetwork.wechat.model.qy.txl.WechatQyUserSyncTask;
import com.ternnetwork.wechat.service.user.WechatQyUserSyncTaskService;

@Service("wechatQyUserSyncTaskService")
public class WechatQyUserSyncTaskServiceImpl implements WechatQyUserSyncTaskService {
	
	
	@Resource
	private WechatQyUserSyncTaskDao wechatQyUserSyncTaskDao;

	public void idoAdd(String  userId,WechatQyUserSyncTaskType type){
		WechatQyUserSyncTask wechatQyUserSyncTask=new WechatQyUserSyncTask(); 
		wechatQyUserSyncTask.setStatus(WechatQyUserSyncTaskStatus.PENDING);
		wechatQyUserSyncTask.setType(type);
		wechatQyUserSyncTask.setUserid(userId);
		wechatQyUserSyncTaskDao.persist(wechatQyUserSyncTask);
	}
	
}
